zeek36.html

 

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Animations and Keyframes</title>
    <style>
        .container {
            height250px;
            background-coloryellowgreen;
        }

        .box {
            height250px;
            width300px;
            background-colorgreen;
            animation-name: zeek1;
            animation-duration2s;
            animation-iteration-countinfinite;
            animation-timing-functionease-in-out;}
        @keyframes zeek1 {
           from {width:300px ;}
           to{width1000px;}
            
        }
        .anime{height250px;
            width250px;
            background-colorrgb(2554747);
            animation-name: zeek2;
            animation-duration2s;
            animation-iteration-countinfinite;
            positionrelative;
        }
        @keyframes zeek2{
            0% {top0;left:0;}
            25%{top250px;left:0;}
            50%{top250px;left:250px;}
            75%{top0;left:250px;}
            100%{top0;left:0;}
        }

    </style>
</head>

<body>
    <div class="container">
        <div class="box">
            This is a box
        </div>
    </div>
    <div class="anime">
        this is another box
    </div>

</body>

</html>

Comments

Popular posts from this blog

INDEX OF ZEEK HTML,CSS and JS